package com.sumc.springcloud.feign.controller;

import com.sumc.springcloud.feign.service.FeignService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @describe：
 * @author: Smc
 * @version:v1.0 2020/3/23 11:00   Try to write good code
 */
@RestController
public class FeignController {

    @Autowired
    private FeignService feignService;

    @GetMapping("feign/hello")
    public String hello(){
        return feignService.sayHello();

    }
}
